package com.example.ccsystem.service;

import com.example.ccsystem.entity.Student;

import java.util.List;
import java.util.Map;

public interface StudentService {
    /**
     * get the total number of student
     * @return
     */
    String getAllStudents();

    /**
     * get all Student
     * @return
     */
    List<Map<String,Object>> findAllStudent();

    /**
     * base on id 'get' student information
     * @param sid
     * @return
     */
    Student getBySId(int sid);

    /**
     * 'add' student
     * @param student
     * @return
     */
    int addStu(Student student);

    /**
     * base on sid 'delete' student
     * @param sid
     * @return
     */
    int deleteStu(int sid);

    /**
     * 'update' student information
     * @param student
     * @return
     */
    int updateStu(Student student);

    /**
     * 'setence' weather exist student or not
     * @param sid
     * @return
     */
    int isHasStu(int sid);
}
